home *** CD-ROM | disk | FTP | other *** search
/ The Game Master (3rd Edition) / The Game Master 3rd edition.iso / files / demo_vga / utilega2 / egaclr.doc < prev    next >
Encoding:
Text File  |  1986-10-09  |  7.5 KB  |  158 lines

  1.                                      EGACLR.COM
  2.                                Ver. 1.2, Feb 27, 1986
  3.                  Part of the ENHANCER series of programs EGACLR.COM
  4.  
  5.                      Copyright (C)  I. B. Miller     1985, 1986
  6.  
  7.          If you find this of value and use it please send $25 to
  8.          Enhancers, 231 Otonabee Ave., Willowdale, Ontario, Canada M2M-2S9
  9.  
  10.          EGACLR is a program which Controls the seventeen palette registers
  11.          on the enhanced color card ( Enhanced Graphics Adapter), 12
  12.          different user selected color combinations of any 16 of the 64
  13.          colors available can be made active by use of the Alt key at the
  14.          same time as any of the number keys 1 to = at the top of the qwerty
  15.          keyboard.
  16.  
  17.          EGACLR changes to your set of colors whenever a video reset occurs.
  18.          This defeats the revisionist tendencies of most programs which reset
  19.          colors to standard and then use black and white instead of your
  20.          choice of colors.
  21.  
  22.          Because some programs such as LOTUS Development's drivers for 123
  23.          and Symphony use proper techniques to change colors but end up with
  24.          what I and many other users consider a poor choice of colors I wrote
  25.          this program to at the users option to reset colors when anyone but
  26.          itself changes colors in the EGA registers.  The parameter 'o' in
  27.          the command line can disable the auto reset feature when another
  28.          program which in your opinion does a good job of colors is run.
  29.          Auto reset is then enabled at the next command given to EGACLR.
  30.  
  31.          A companion program EGACHG.COM provides a means to select 12 preset
  32.          color combinations and save them in EGACLR so that they are
  33.          available the next time you run EGACLR.
  34.  
  35.          The actual colors available to you depend on your actual hardware
  36.          set up and so may be different.  As an example if you have only a
  37.          regular monitor you will have only standard colors though you will
  38.          be able to swap them around.  In my experience THE limiting factor
  39.          for text display is the monitor.  Though for graphic display memory
  40.          size is also a limiting factor.
  41.  
  42.          Note that some other programs such as SIDEKICK also work by
  43.          borrowing or stealing vectors.  This program and such others are
  44.          usually compatible but in case of difficulty the order in which they
  45.          are called up can be important as in the case of SIDEKICK where
  46.          EGACLR must be called first.  It must be remembered that in such
  47.          cases EGACLR acheives compatability by surrendering its vector to
  48.          the other and may no longer be working fully or at all.  As an
  49.          example POLYCOM-240 takes the keyboard unto itself to emulate a
  50.          VT-100 and doesn't pass keystrokes to EGACLR but when we leave
  51.          POLYCOM-240 EGACLR is again active.
  52.  
  53.          A parameter line is also available to change the colors in <Alt 1>
  54.          on the fly.  Its use is described below.
  55.  
  56.          Syntax is: EGACLR  r,PHH,PHH,PHH,sHH,o
  57.          ----------
  58.            r means reset to standard colors ( letter r )
  59.            , indicates another palette color change is coming
  60.            P is any hex digit (0-F) to indicate the desired palette register
  61.              #, up to the full 16 palette registers may be set this way.
  62.            s means the overscan or border ( letter s )
  63.              (Not useable in enhanced mode - temporarily fouls up display.)
  64.            o means turn off the auto-resetting action ( letter o )
  65.            HH is the color to be used (MUST be 2 HEX-digits
  66.  
  67.          Regular Monitor  -
  68.  
  69.          The default gives standard colors on the enhanced monitor - you must
  70.          set the high intensity colors for the regular monitor following
  71.          rules below.
  72.  
  73.          If you have a regular monitor the card will give regular colors only
  74.          but while 8 to F are NORMALLY high intensity versions of 0 to 7 the
  75.          EGA must have a 1 put in to get high intensity. - A is bright green
  76.          on regular card but on the EGA bright green is 1A or 12 - similar
  77.          for 0E and 1E or 16 etc.
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.                                    EGACLR  page 2
  85.  
  86.  
  87.          I suspect that it has to do with the fact that when operating with a
  88.          regular monitor the card ignores bits to define other colors and
  89.          just uses those which define the standard set of 8, then it looks to
  90.          the high digit and looks only at the 1 bit to pick high intensity.
  91.  
  92.          (For a chart of EGA color codes, see the file EGACHG.DOC.)
  93.  
  94.          Sample command: (Easiest to use from a batch file as remembering
  95.          colors is difficult EGACHG.COM will set up batch files for this
  96.          purpose.)
  97.                                EGACLR  001,212,717,916
  98.                        (this choice is for a regular monitor)
  99.  
  100.          to set up the palettes to get decent colors with the 3278/79 emulate
  101.          card - change as desired to have different colors in place of
  102.          standard.
  103.  
  104.          This says change 0 or Black background to 01 or Blue background
  105.                           2 or Dark Green       to 12 or Light Green
  106.                           7 or White *          to 17 or High intensity White
  107.                           9 or Light Blue **    to 16 or Light Yellow
  108.  
  109.  
  110.          Disclaimer
  111.          ----------
  112.          For obvious reasons the user is totally responsible for use of this
  113.          program and determining that it is suitable for use by him, and he
  114.          uses this program with no warranty from myself.
  115.  
  116.          It should work properly with the EGA from IBM or any card which
  117.          later maintains compatibility with it
  118.  
  119.          This program is used by myself with LOTUS Development programs and
  120.          works well solving a colors shift bug (or less than perfect EGA
  121.          driver routine) but obviously LOTUS does not support it.
  122.  
  123.          General
  124.          --------
  125.          The official standard color palettes are:
  126.  
  127.                           0. Black            8. grey
  128.                           1. Blue             9. Light Blue
  129.                           2. Green            A. light Green
  130.                           3. Cyan             B. Light Cyan
  131.                           4. Red              C. light Red
  132.                           5. Magenta          D. Light Magenta
  133.                           6. Brown            E. Yellow
  134.                           7. White            F. bright White
  135.  
  136.          You might want to try some of the following to replace any of the
  137.          standard colors - example uses the 0 or normally Black Palette.
  138.  
  139.                          10 - a beautiful deep green    "EGACLR 010"
  140.                          08 - a very deep blue          "EGACLR 008"
  141.                          20 - a very deep red           "EGACLR 020"
  142.                          34 - an orangish salmon        "EGACLR 034"
  143.                          25 - a hot pink                "EGACLR 025"
  144.  
  145.          Again please note that if you have the regular monitor or the
  146.          Enhanced Monitor operating in regular mode none of the above
  147.          non-standard colors are available to you!
  148.  
  149.  
  150.          Of Course
  151.          ----------
  152.          The program EGACHG.COM will allow you to work with many colors and
  153.          see them on screen interactively without any of the work involved in
  154.          remembering all these numbers and color coding schemes.  I believe
  155.          it will make color control easy.
  156.  
  157.  
  158.